package pl.minim.unidefCMS.objects {

	/**
	 * @author Marek Brun
	 */
	public class UnidefBoolean extends AbstractUnidefObject {
				public var value:Boolean=false;
		
		public function UnidefBoolean() {
			
		}
		
		override public function getDataAsTextPreview():String {
			return String(value);
		}
		
		override public function getTypeName():String {
			return 'Boolean';
		}
		
		override public function toXML():XML {
			var xml:XML=<i/>;
			xml.appendChild(int(value));
			return xml;
		}
		
		override public function exportToRawData():* {
			return value;
		}
		
	}
}
